icc: detect inconsistent Argyll ICC cLUT profiles, issue #21
authorØyvind Kolås <pippin@gimp.org>
Tue, 21 Aug 2018 12:18:00 +0000 (14:18 +0200)
committerØyvind Kolås <pippin@gimp.org>
Tue, 21 Aug 2018 12:31:03 +0000 (14:31 +0200)
commitf193663f1892364a1f1dfbe46e24296fb1c735f8
tree6db13e17e5c0a3cc722dfd00825a2067715b9b2f
parentc681d77669191890bbd7bc0fcdba2265472fc343
icc: detect inconsistent Argyll ICC cLUT profiles, issue #21

The default behavior for Agryll when creating cLUT profiles seem to be
embedding an obviously incorrect XYZ matrix, meaning that for now we cannot use
the matrix for our relative colorimetric transform, and in the future the
profile will be incapable of doing dynamic trade-offs between performance and
accuracy by using matrix over cLUT during interactive operations.

We detect the swapped primaries in combination with presence of cLUTs and then
bail on constructing a valid babl space, as well as provide debug information
about why the profile cannot be used by babl.
babl/babl-icc.c